Define separated function app_subscriptions(), and use a map to save the functions;
Get the request method and map to the app_xxx functions.