from django.urls import path
from . import views

urlpatterns = [
    ############## LOG IN/LOG OUT###############
    path('', views.landing, name="landing"),
    path('about/', views.about, name="about"),
    path('login/', views.login_view, name="login"),
    path('signup/', views.signup_view, name="signup"),
    path('logout/', views.logout_view, name="logout"),
    ############# HOMEPAGE ##############
    path('homepage/', views.homepage, name="homepage"),
    ############# PROFILE ###############
    path('user/<username>/', views.dashboard, name='dashboard'),
    ############# FOOD API #################
    path('api/food/find/<slug:food>', views.find_food, name='find_food'),
    path('meals/', views.mealForm, name="meals"),
    ############# WORKOUT API #################
    path('api/workout/find/<slug:muscle>', views.find_workout, name='find_workout'),
    path('api/workout/save/<username>/', views.save_workout, name='save_workout'),
    path('circuits/', views.circuitForm, name="circuits"),
    ############ CUSTOM MEALS AND CIRCUITS API ###################
    path('api/custommeals/', views.custom_meals, name="custommeals"),
    path('api/customcircuits/', views.custom_circuits, name="customcircuit"),
]
