<gh_stars>1-10
import hug

from snowman_teste.resources.user import UserApi
from snowman_teste.resources.tour_point import TourPointApi


def create_api():
    api = hug.API(__name__)
    api.http.base_url = '/api'
    api.http.output_format = hug.output_format.pretty_json

    routes = hug.route.API(__name__)
    routes.object(urls='/tour_points')(TourPointApi)
    routes.object(urls='/users')(UserApi)

    return api

import hug

from snowman_teste.resources.user import UserApi
from snowman_teste.resources.tour_point import TourPointApi


def create_api():
    api = hug.API(__name__)
    api.http.base_url = '/api'
    api.http.output_format = hug.output_format.pretty_json

    routes = hug.route.API(__name__)
    routes.object(urls='/tour_points')(TourPointApi)
    routes.object(urls='/users')(UserApi)

    return api