def get_all_routes(app):
    """Returns all routes from Sanic app, excludes duplicates."""
    all_routes = app.router.routes_all
    routes = {}
    for route in all_routes:
        if route[-1] != '/':
            routes[route] = all_routes[route]
    return routes
