---
title: "Comment by Peter Siegmund on \"Going Serverless with Dart: Building Cloud Functions on GCP\" | Hashnode"
description: "How can I create multiple endpoints? Just create a second annotated function?"
url: "https://hashnode.com/posts/going-serverless-with-dart-building-cloud-functions-on-gcp/676019a9230e1ce9e6f1e47c/comment/67b5d54d18e80e8889d203a7"
---

[Discussion](https://hashnode.com/posts/going-serverless-with-dart-building-cloud-functions-on-gcp/676019a9230e1ce9e6f1e47c)

Comment [Going Serverless with Dart: Building Cloud Functions on GCP](https://hashnode.com/posts/going-serverless-with-dart-building-cloud-functions-on-gcp/676019a9230e1ce9e6f1e47c)

[Peter Siegmund](https://hashnode.com/@mars3142)

[Feb 19, 2025](https://hashnode.com/posts/going-serverless-with-dart-building-cloud-functions-on-gcp/676019a9230e1ce9e6f1e47c/comment/67b5d54d18e80e8889d203a7)

How can I create multiple endpoints? Just create a second annotated function?

[Dinko Marinac](https://hashnode.com/@dinko7)

[Feb 19, 2025](https://hashnode.com/posts/going-serverless-with-dart-building-cloud-functions-on-gcp/676019a9230e1ce9e6f1e47c/comment/67b5d54d18e80e8889d203a7#reply-67b65954d6cf026b91fdc74f)

It really depends on what are you trying to do. If you have a CRUD endpoint, then you can just use shelf\_router to mount multiple handlers to this serverless function.

If you don't want that, you have to create a new function.
